define(["jquery","core/util","hc"],function($,util,hc){
	
	var View={
		
		initView:function(_this){
			MySck.on("screen",function(data){
				console.log(".....");
				$("#remoteScreen").attr("src",data)
			})
		}
		
	}
	
	function openWin(){
		var $div=$("<div/>").appendTo($("body"));
			$div.window({
				width:950,
				height:450,
				title:"远程屏幕",
				href:"plugs/remoteScreen/template.html#test",
				onLoad:function(){
					var _this=$(this);
					View.initView();
				},
				onClose:function(){
					$div.window("destroy",true);
				}
			})
	}
	
	return {
		
		init:function(){
			
		},
		
		run:function(){
			openWin();
		}
		
	}
	
})